/**
 * 
 */
package br.com.maxvoto.control.padrao;

import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

import br.com.maxvoto.model.Usuario;

/**
 * 
 * @author Renan Celso
 */
@SessionScoped
public class BaseControl {

    public Usuario getUsuario() {
	HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
	return (Usuario) session.getAttribute("currentUser");
    }
    
}
